﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Assignment2.Conditions
{
    class AndCondition : Condition
    {
        private Condition condition1, condition2;

        public AndCondition(Condition condition1, Condition condition2)
        {
            this.condition1 = condition1;
            this.condition2 = condition2;
        }

        public bool test()
        {
            return condition1.test() && condition2.test();
        }
    }
}
